import request from '@/utils/request'

// 查询工位物料列表
export function listOperations(query) {
  return request({
    url: '/base/stationMaterial/list',
    method: 'get',
    params: query
  })
}

// 新增
export function addOperations(data) {
  return request({
    url: '/base/stationMaterial',
    method: 'post',
    data: data
  })
}

// 修改
export function updateOperations(data) {
  return request({
    url: '/base/stationMaterial',
    method: 'put',
    data: data
  })
}
// 删除
export function delOperations(id) {
  return request({
    url: '/base/stationMaterial/' + id,
    method: 'delete'
  })
}
// 获取工位物料详细信息

export function getStationMaterial(id) {
    return request({
      url: '/base/stationMaterial/'+ id,
      method: 'get',
    //   params: query
    })
  }